import json
import urllib
import uuid

def build_url(base, params):
    
    return '%s?%s' % (base, urllib.urlencode(params))

def serialize(dict_or_list):
    
    return json.dumps(dict_or_list, ensure_ascii = True, indent = 4)

def generate_hash():
    
    return uuid.uuid4().hex
